From 34a8699cc7fd0ceb312498410f21c09d93ed3306 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 23 Sep 2005 20:09:59 +0100 Subject: [PATCH] Add an install-time check for hotplug. The hotplug subsystem is currently needed for block devices to work, as of changeset 6742:e9d01c5dc7b4d6b7cda9ade0d137ddb89bb204cc. Add a script to check for the presence of hotplug and warn if it isn't found. Signed-off-by: Michael Vrable --- tools/check/check_hotplug | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/check/check_hotplug diff --git a/tools/check/check_hotplug b/tools/check/check_hotplug new file mode 100644 index 0000000000..15c902171c --- /dev/null +++ b/tools/check/check_hotplug @@ -0,0 +1,10 @@ +#!/bin/bash +# CHECK-INSTALL + +function error { + echo + echo ' *** Check for the hotplug scripts (hotplug) FAILED' + exit 1 +} + +which hotplug 1>/dev/null 2>&1 || error -- 2.30.2